package model;

/**
 * Classe com informaçoes dos tipos de variaveis e retorno.
 * 
 * @author Jody Matos, Alenilson
 * @see model
 * @see Variable
 */
public enum VarType {
    CONSTANTS, INT, FLOAT, BOOL, CHAR, STRING, NULL, IDENTIFIER, OBJECT;

    @Override
    public String toString() {
	if (this == VarType.CONSTANTS)
	    return "constante";
	else if (this == VarType.INT)
	    return "inteiro";
	else if (this == VarType.BOOL)
	    return "logico";
	else if (this == VarType.CHAR)
	    return "caractere";
	else if (this == VarType.STRING)
	    return "cadeia";
	else if (this == VarType.NULL)
	    return "vazio";
	else if (this == VarType.FLOAT)
	    return "real";
	else
	    return super.toString();
    }
}